package com.itcast.springboot.waste_recovery.controller;


import com.itcast.springboot.waste_recovery.common.CommonResult;
import io.swagger.annotations.*;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 系统消息 前端控制器
 * </p>
 *
 * @author 小破烂
 * @since 2020-08-23
 */
@RestController
@RequestMapping("/waste_recovery/system-message")
@Api(tags = "系统消息类接口")
public class SystemMessageController {

    @GetMapping("staff/sys_msg/{user_id}/{order_status}")
    @ApiOperation(value = "员工端：系统消息")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "user_id", value = "用户id"),
            @ApiImplicitParam(name = "order_status", value = "订单状态")
    })
    @RequiresPermissions("staff-operated")       //拥有 user-operated 才可以访问
    public CommonResult staffSysMsg(@PathVariable(value = "user_id") String userId,
                                    @PathVariable(value = "order_status") String orderStatus){

        return null;
    }
}

